package com.langsin.jiangjinheng.mapper;

import com.langsin.bean.Goods;
import com.langsin.bean.QueryVo;
import com.langsin.bean.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.HashMap;
import java.util.List;

public interface GoodsMapper {
    int addGoods(Goods goods);

    List<Goods> queryByName(String goodsName);

    List<Goods> queryByName2(String goodsName);

    int counts(String tableName);
    //入参是list
    List<Goods> queryByIds(List<Integer> ids);


    //@Select("select * from goods where goodsId = #{values };")
    Goods queryByIdAno( Integer gid);


    /*多条件查询*/
    List<Goods> queryByCondition(Goods goods);
}
